import request from '@/utils/request'
// 获取活动列表2
export function activitiesList(query) {
  return request({
    url: '/activities/list',
    method: 'get',
    params: query,
  })
}
// 查询活动详情
export function getInfo(query) {
  return request({
    url: '/activities/info',
    method: 'get',
    params: query,
  })
}
// 查询活动作品
export function getHuodong(query) {
  return request({
    url: '/activities/work/list',
    method: 'get',
    params: query,
  })
}
// 查询活动排行榜
export function rankings(query) {
  return request({
    url: '/activities/rankings',
    method: 'get',
    params: query,
  })
}
// 查询活动结算页面
export function settle(query) {
  return request({
    url: '/activities/settle',
    method: 'get',
    params: query,
  })
}
// 发表评论
export function leaveComment(data) {
  return request({
    url: '/work/comments',
    method: 'post',
    data: data,
  })
}
// 注册手机号
export function register(data) {
  return request({
    url: '/auth/phone/register',
    method: 'post',
    data: data,
  })
}
